-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  C:\Users\stephenutych\Dropbox\dissertation!!\Experimental stuff\PSRMreplication.log
  log type:  text
 opened on:   5 Aug 2020, 11:45:54

. 
. /*Study 1*/
. 
. use humanornots1data.dta, clear

. 
. *Table 2
. reg cas1 sanitize republican ideo2

      Source |       SS           df       MS      Number of obs   =       288
-------------+----------------------------------   F(3, 284)       =     24.24
       Model |  179.257023         3  59.7523411   Prob > F        =    0.0000
    Residual |  700.062421       284  2.46500853   R-squared       =    0.2039
-------------+----------------------------------   Adj R-squared   =    0.1954
       Total |  879.319444       287  3.06383082   Root MSE        =      1.57

------------------------------------------------------------------------------
        cas1 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
    sanitize |   .8820884    .185333     4.76   0.000     .5172877    1.246889
  republican |   .1210692   .0962096     1.26   0.209    -.0683052    .3104437
       ideo2 |   .2578271   .1324161     1.95   0.053    -.0028144    .5184686
       _cons |   2.493861   .2138335    11.66   0.000     2.072961    2.914761
------------------------------------------------------------------------------

. reg cas2 sanitize republican ideo2

      Source |       SS           df       MS      Number of obs   =       288
-------------+----------------------------------   F(3, 284)       =      4.36
       Model |  23.4040863         3  7.80136211   Prob > F        =    0.0051
    Residual |  508.470914       284  1.79039054   R-squared       =    0.0440
-------------+----------------------------------   Adj R-squared   =    0.0339
       Total |     531.875       287    1.853223   Root MSE        =    1.3381

------------------------------------------------------------------------------
        cas2 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
    sanitize |    -.28116   .1579492    -1.78   0.076    -.5920597    .0297396
  republican |   .0432792   .0819942     0.53   0.598    -.1181143    .2046727
       ideo2 |  -.2084986    .112851    -1.85   0.066    -.4306291    .0136319
       _cons |   6.436218   .1822386    35.32   0.000     6.077508    6.794928
------------------------------------------------------------------------------

. reg cas3 sanitize republican ideo2

      Source |       SS           df       MS      Number of obs   =       288
-------------+----------------------------------   F(3, 284)       =     11.55
       Model |  54.3963632         3  18.1321211   Prob > F        =    0.0000
    Residual |  445.850165       284  1.56989495   R-squared       =    0.1087
-------------+----------------------------------   Adj R-squared   =    0.0993
       Total |  500.246528       287  1.74301926   Root MSE        =     1.253

------------------------------------------------------------------------------
        cas3 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
    sanitize |  -.0274132   .1479036    -0.19   0.853    -.3185397    .2637133
  republican |  -.0834652   .0767794    -1.09   0.278    -.2345941    .0676637
       ideo2 |  -.1592284   .1056737    -1.51   0.133    -.3672314    .0487747
       _cons |   5.341374   .1706483    31.30   0.000     5.005478     5.67727
------------------------------------------------------------------------------

. reg ucas1 sanitize republican ideo2

      Source |       SS           df       MS      Number of obs   =       288
-------------+----------------------------------   F(3, 284)       =      5.43
       Model |  17.6571993         3  5.88573311   Prob > F        =    0.0012
    Residual |  307.561551       284  1.08296321   R-squared       =    0.0543
-------------+----------------------------------   Adj R-squared   =    0.0443
       Total |   325.21875       287  1.13316638   Root MSE        =    1.0407

------------------------------------------------------------------------------
       ucas1 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
    sanitize |  -.4543976    .122843    -3.70   0.000    -.6961959   -.2125993
  republican |   -.069567     .06377    -1.09   0.276    -.1950888    .0559547
       ideo2 |   .0367691   .0877684     0.42   0.676    -.1359901    .2095283
       _cons |    2.76856   .1417338    19.53   0.000     2.489578    3.047542
------------------------------------------------------------------------------

. reg ucas2 sanitize republican ideo2

      Source |       SS           df       MS      Number of obs   =       288
-------------+----------------------------------   F(3, 284)       =      7.84
       Model |  30.0901079         3   10.030036   Prob > F        =    0.0000
    Residual |  363.409892       284   1.2796123   R-squared       =    0.0765
-------------+----------------------------------   Adj R-squared   =    0.0667
       Total |       393.5       287  1.37108014   Root MSE        =    1.1312

------------------------------------------------------------------------------
       ucas2 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
    sanitize |  -.5264925   .1335312    -3.94   0.000    -.7893289    -.263656
  republican |   .0041317   .0693184     0.06   0.953    -.1323113    .1405747
       ideo2 |  -.1285169   .0954049    -1.35   0.179    -.3163074    .0592735
       _cons |   3.975079   .1540656    25.80   0.000     3.671823    4.278334
------------------------------------------------------------------------------

. 
. *Footnote 2
. reg ucas3 sanitize

      Source |       SS           df       MS      Number of obs   =       291
-------------+----------------------------------   F(1, 289)       =      3.78
       Model |  3.99751631         1  3.99751631   Prob > F        =    0.0530
    Residual |  305.920009       289  1.05854675   R-squared       =    0.0129
-------------+----------------------------------   Adj R-squared   =    0.0095
       Total |  309.917526       290  1.06868112   Root MSE        =    1.0289

------------------------------------------------------------------------------
       ucas3 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
    sanitize |   -.234579   .1207116    -1.94   0.053    -.4721644    .0030064
       _cons |   3.492857   .0869543    40.17   0.000     3.321713    3.664001
------------------------------------------------------------------------------

. 
. *Fig 1a
. medeff (regress ucas1 sanitize) (regress cas1 ucas1 sanitize), mediate(ucas1) treat(sanitize) sims(1000)
Using 0 and 1 as treatment values

      Source |       SS           df       MS      Number of obs   =       291
-------------+----------------------------------   F(1, 289)       =     13.79
       Model |  14.9343478         1  14.9343478   Prob > F        =    0.0002
    Residual |  312.880085       289  1.08263005   R-squared       =    0.0456
-------------+----------------------------------   Adj R-squared   =    0.0423
       Total |  327.814433       290   1.1303946   Root MSE        =    1.0405

------------------------------------------------------------------------------
       ucas1 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
    sanitize |  -.4534059   .1220771    -3.71   0.000    -.6936787    -.213133
       _cons |   2.678571   .0879379    30.46   0.000     2.505492    2.851651
------------------------------------------------------------------------------

      Source |       SS           df       MS      Number of obs   =       291
-------------+----------------------------------   F(2, 288)       =     42.12
       Model |  200.413168         2  100.206584   Prob > F        =    0.0000
    Residual |  685.243189       288  2.37931663   R-squared       =    0.2263
-------------+----------------------------------   Adj R-squared   =    0.2209
       Total |  885.656357       290  3.05398744   Root MSE        =    1.5425

------------------------------------------------------------------------------
        cas1 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
    sanitize |   .5295318   .1852444     2.86   0.005     .1649271    .8941364
       ucas1 |  -.6897964   .0872042    -7.91   0.000    -.8614347   -.5181581
       _cons |    5.37624   .2674994    20.10   0.000     4.849739    5.902742
------------------------------------------------------------------------------
The number of observations in the data is less than the number of simulations. Expanding the data to the number of simulations
------------------------------------------------------------------------------------
        Effect                 |  Mean           [95% Conf. Interval]
-------------------------------+----------------------------------------------------
        ACME                   |  .3064485      .1307318      .5042294
        Direct Effect          |  .5296363        .16085      .8935332
        Total Effect           |  .8360849        .45033      1.228715
        % of Tot Eff mediated  |  .3626029      .2494068      .6805108
------------------------------------------------------------------------------------

. 
. medsens (regress ucas1 sanitize) (regress cas1 ucas1 sanitize), mediate(ucas1) treat(sanitize) sims(1000) eps(.01)

      Source |       SS           df       MS      Number of obs   =       291
-------------+----------------------------------   F(1, 289)       =     13.79
       Model |  14.9343478         1  14.9343478   Prob > F        =    0.0002
    Residual |  312.880085       289  1.08263005   R-squared       =    0.0456
-------------+----------------------------------   Adj R-squared   =    0.0423
       Total |  327.814433       290   1.1303946   Root MSE        =    1.0405

------------------------------------------------------------------------------
       ucas1 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
    sanitize |  -.4534059   .1220771    -3.71   0.000    -.6936787    -.213133
       _cons |   2.678571   .0879379    30.46   0.000     2.505492    2.851651
------------------------------------------------------------------------------
(1 missing value generated)

      Source |       SS           df       MS      Number of obs   =       291
-------------+----------------------------------   F(2, 288)       =     42.12
       Model |  200.413168         2  100.206584   Prob > F        =    0.0000
    Residual |  685.243189       288  2.37931663   R-squared       =    0.2263
-------------+----------------------------------   Adj R-squared   =    0.2209
       Total |  885.656357       290  3.05398744   Root MSE        =    1.5425

------------------------------------------------------------------------------
        cas1 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
       ucas1 |  -.6897964   .0872042    -7.91   0.000    -.8614347   -.5181581
    sanitize |   .5295318   .1852444     2.86   0.005     .1649271    .8941364
       _cons |    5.37624   .2674994    20.10   0.000     4.849739    5.902742
------------------------------------------------------------------------------
(1 missing value generated)
file C:\Users\STEPHE~1\AppData\Local\Temp\ST_2db4_000002.tmp saved


----------------------------------------------------------------
Sensitivity results
----------------------------------------------------------------
        Rho at which ACME = 0            |    -.4225
        R^2_M*R^2_Y* at which ACME = 0:  |     .1785
        R^2_M~R^2_Y~ at which ACME = 0:  |     .1318
----------------------------------------------------------------
95% Confidence interval

. 
. twoway rarea _med_updelta0 _med_lodelta0 _med_rho, bcolor(gs14) || line  _med_delta0 _med_rho , lcolor(black) ytitle("Average mediation effect") xtitle("Sensitivity paramete
> r: p") legend(off) title("ACME(p) - Figure 1a")

. 
. 
. 
. *Fig 1b
. medeff (regress ucas2 sanitize) (regress cas2 ucas2 sanitize), mediate(ucas2) treat(sanitize) sims(1000)
Using 0 and 1 as treatment values

      Source |       SS           df       MS      Number of obs   =       291
-------------+----------------------------------   F(1, 289)       =     13.75
       Model |  17.9183452         1  17.9183452   Prob > F        =    0.0002
    Residual |  376.500899       289  1.30277128   R-squared       =    0.0454
-------------+----------------------------------   Adj R-squared   =    0.0421
       Total |  394.419244       290  1.36006636   Root MSE        =    1.1414

------------------------------------------------------------------------------
       ucas2 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
    sanitize |  -.4966414   .1339146    -3.71   0.000    -.7602131   -.2330698
       _cons |   3.635714   .0964651    37.69   0.000     3.445851    3.825577
------------------------------------------------------------------------------

      Source |       SS           df       MS      Number of obs   =       291
-------------+----------------------------------   F(2, 288)       =     35.30
       Model |  105.536831         2  52.7684154   Prob > F        =    0.0000
    Residual |  430.504406       288  1.49480697   R-squared       =    0.1969
-------------+----------------------------------   Adj R-squared   =    0.1913
       Total |  536.041237       290  1.84841806   Root MSE        =    1.2226

------------------------------------------------------------------------------
        cas2 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
    sanitize |  -.0142457   .1468191    -0.10   0.923    -.3032203    .2747288
       ucas2 |   .5159392     .06301     8.19   0.000     .3919207    .6399577
       _cons |   4.109907   .2513121    16.35   0.000     3.615266    4.604548
------------------------------------------------------------------------------
The number of observations in the data is less than the number of simulations. Expanding the data to the number of simulations
------------------------------------------------------------------------------------
        Effect                 |  Mean           [95% Conf. Interval]
-------------------------------+----------------------------------------------------
        ACME                   | -.2569749     -.4300782     -.1159033
        Direct Effect          | -.0141629     -.3064517      .2742508
        Total Effect           | -.2711377     -.5863783        .03232
        % of Tot Eff mediated  |  .8948126     -2.914281      8.098694
------------------------------------------------------------------------------------

. 
. medsens  (regress ucas2 sanitize) (regress cas2 ucas2 sanitize), mediate(ucas2) treat(sanitize) sims(1000) eps(.01)
Dropping existing variable _med_rho
Dropping existing variable _med_delta0
Dropping existing variable _med_updelta0
Dropping existing variable _med_lodelta0
Dropping existing variable _med_delta1
Dropping existing variable _med_updelta1
Dropping existing variable _med_lodelta1

      Source |       SS           df       MS      Number of obs   =       291
-------------+----------------------------------   F(1, 289)       =     13.75
       Model |  17.9183452         1  17.9183452   Prob > F        =    0.0002
    Residual |  376.500899       289  1.30277128   R-squared       =    0.0454
-------------+----------------------------------   Adj R-squared   =    0.0421
       Total |  394.419244       290  1.36006636   Root MSE        =    1.1414

------------------------------------------------------------------------------
       ucas2 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
    sanitize |  -.4966414   .1339146    -3.71   0.000    -.7602131   -.2330698
       _cons |   3.635714   .0964651    37.69   0.000     3.445851    3.825577
------------------------------------------------------------------------------
(1 missing value generated)

      Source |       SS           df       MS      Number of obs   =       291
-------------+----------------------------------   F(2, 288)       =     35.30
       Model |  105.536831         2  52.7684154   Prob > F        =    0.0000
    Residual |  430.504406       288  1.49480697   R-squared       =    0.1969
-------------+----------------------------------   Adj R-squared   =    0.1913
       Total |  536.041237       290  1.84841806   Root MSE        =    1.2226

------------------------------------------------------------------------------
        cas2 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
       ucas2 |   .5159392     .06301     8.19   0.000     .3919207    .6399577
    sanitize |  -.0142457   .1468191    -0.10   0.923    -.3032203    .2747288
       _cons |   4.109907   .2513121    16.35   0.000     3.615266    4.604548
------------------------------------------------------------------------------
(1 missing value generated)
file C:\Users\STEPHE~1\AppData\Local\Temp\ST_2db4_000002.tmp saved


----------------------------------------------------------------
Sensitivity results
----------------------------------------------------------------
        Rho at which ACME = 0            |     .4346
        R^2_M*R^2_Y* at which ACME = 0:  |     .1889
        R^2_M~R^2_Y~ at which ACME = 0:  |     .1448
----------------------------------------------------------------
95% Confidence interval

. 
. twoway rarea _med_updelta0 _med_lodelta0 _med_rho, bcolor(gs14) || line  _med_delta0 _med_rho , lcolor(black) ytitle("Average mediation effect") xtitle("Sensitivity paramete
> r: p") legend(off) title("ACME(p) - Figure 1b")

. 
. 
. 
. *Ideology moderation
. 
. reg cas1 c.sanitize c.ideo2 c.sanitize#c.ideo2 republican

      Source |       SS           df       MS      Number of obs   =       288
-------------+----------------------------------   F(4, 283)       =     18.19
       Model |  179.843049         4  44.9607623   Prob > F        =    0.0000
    Residual |  699.476395       283  2.47164804   R-squared       =    0.2045
-------------+----------------------------------   Adj R-squared   =    0.1933
       Total |  879.319444       287  3.06383082   Root MSE        =    1.5721

------------------------------------------------------------------------------------
              cas1 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------------+----------------------------------------------------------------
          sanitize |   1.030074   .3560987     2.89   0.004     .3291358    1.731012
             ideo2 |   .2909902    .149063     1.95   0.052    -.0024227    .5844032
                   |
c.sanitize#c.ideo2 |  -.0557566   .1145067    -0.49   0.627    -.2811494    .1696363
                   |
        republican |   .1169486   .0967101     1.21   0.228    -.0734138     .307311
             _cons |   2.414646   .2689123     8.98   0.000     1.885324    2.943968
------------------------------------------------------------------------------------

. reg cas2 c.sanitize c.ideo2 c.sanitize#c.ideo2 republican

      Source |       SS           df       MS      Number of obs   =       288
-------------+----------------------------------   F(4, 283)       =      3.26
       Model |  23.4244149         4  5.85610373   Prob > F        =    0.0123
    Residual |  508.450585       283  1.79664518   R-squared       =    0.0440
-------------+----------------------------------   Adj R-squared   =    0.0305
       Total |     531.875       287    1.853223   Root MSE        =    1.3404

------------------------------------------------------------------------------------
              cas2 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------------+----------------------------------------------------------------
          sanitize |  -.3087223   .3036045    -1.02   0.310     -.906332    .2888874
             ideo2 |  -.2146752   .1270889    -1.69   0.092    -.4648348    .0354843
                   |
c.sanitize#c.ideo2 |   .0103846   .0976267     0.11   0.915     -.181782    .2025513
                   |
        republican |   .0440466   .0824536     0.53   0.594    -.1182535    .2063468
             _cons |   6.450972   .2292707    28.14   0.000      5.99968    6.902264
------------------------------------------------------------------------------------

. reg cas3 c.sanitize c.ideo2 c.sanitize#c.ideo2 republican

      Source |       SS           df       MS      Number of obs   =       288
-------------+----------------------------------   F(4, 283)       =      8.69
       Model |  54.7137469         4  13.6784367   Prob > F        =    0.0000
    Residual |  445.532781       283  1.57432078   R-squared       =    0.1094
-------------+----------------------------------   Adj R-squared   =    0.0968
       Total |  500.246528       287  1.74301926   Root MSE        =    1.2547

------------------------------------------------------------------------------------
              cas3 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------------+----------------------------------------------------------------
          sanitize |   .0814933   .2841998     0.29   0.775    -.4779204     .640907
             ideo2 |  -.1348228   .1189661    -1.13   0.258    -.3689935    .0993479
                   |
c.sanitize#c.ideo2 |  -.0410327   .0913869    -0.45   0.654    -.2209171    .1388517
                   |
        republican |  -.0864977   .0771836    -1.12   0.263    -.2384245    .0654291
             _cons |   5.283078   .2146169    24.62   0.000      4.86063    5.705526
------------------------------------------------------------------------------------

. reg ucas1 c.sanitize c.ideo2 c.sanitize#c.ideo2 republican

      Source |       SS           df       MS      Number of obs   =       288
-------------+----------------------------------   F(4, 283)       =      4.82
       Model |  20.7347843         4  5.18369608   Prob > F        =    0.0009
    Residual |  304.483966       283  1.07591507   R-squared       =    0.0638
-------------+----------------------------------   Adj R-squared   =    0.0505
       Total |   325.21875       287  1.13316638   Root MSE        =    1.0373

------------------------------------------------------------------------------------
             ucas1 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------------+----------------------------------------------------------------
          sanitize |  -.7935278   .2349449    -3.38   0.001    -1.255989   -.3310664
             ideo2 |  -.0392289    .098348    -0.40   0.690    -.2328153    .1543576
                   |
c.sanitize#c.ideo2 |    .127774   .0755486     1.69   0.092    -.0209345    .2764826
                   |
        republican |  -.0601241   .0638069    -0.94   0.347    -.1857204    .0654722
             _cons |   2.950093   .1774215    16.63   0.000     2.600859    3.299326
------------------------------------------------------------------------------------

. reg ucas2 c.sanitize c.ideo2 c.sanitize#c.ideo2 republican

      Source |       SS           df       MS      Number of obs   =       288
-------------+----------------------------------   F(4, 283)       =      5.99
       Model |  30.6947331         4  7.67368327   Prob > F        =    0.0001
    Residual |  362.805267       283  1.28199741   R-squared       =    0.0780
-------------+----------------------------------   Adj R-squared   =    0.0650
       Total |       393.5       287  1.37108014   Root MSE        =    1.1323

------------------------------------------------------------------------------------
             ucas2 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------------+----------------------------------------------------------------
          sanitize |  -.3761767   .2564606    -1.47   0.144    -.8809891    .1286358
             ideo2 |  -.0948317   .1073545    -0.88   0.378    -.3061463     .116483
                   |
c.sanitize#c.ideo2 |  -.0566344   .0824672    -0.69   0.493    -.2189613    .1056924
                   |
        republican |  -.0000538   .0696501    -0.00   0.999    -.1371519    .1370443
             _cons |   3.894616   .1936694    20.11   0.000     3.513401    4.275832
------------------------------------------------------------------------------------

. 
. reg ucas1 c.sanitize c.ideo2 c.sanitize#c.ideo2 republican

      Source |       SS           df       MS      Number of obs   =       288
-------------+----------------------------------   F(4, 283)       =      4.82
       Model |  20.7347843         4  5.18369608   Prob > F        =    0.0009
    Residual |  304.483966       283  1.07591507   R-squared       =    0.0638
-------------+----------------------------------   Adj R-squared   =    0.0505
       Total |   325.21875       287  1.13316638   Root MSE        =    1.0373

------------------------------------------------------------------------------------
             ucas1 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------------+----------------------------------------------------------------
          sanitize |  -.7935278   .2349449    -3.38   0.001    -1.255989   -.3310664
             ideo2 |  -.0392289    .098348    -0.40   0.690    -.2328153    .1543576
                   |
c.sanitize#c.ideo2 |    .127774   .0755486     1.69   0.092    -.0209345    .2764826
                   |
        republican |  -.0601241   .0638069    -0.94   0.347    -.1857204    .0654722
             _cons |   2.950093   .1774215    16.63   0.000     2.600859    3.299326
------------------------------------------------------------------------------------

. margins, at(sanitize=(0 1) ideo2=(0 6)) l(90) saving(e1, replace)

Predictive margins                              Number of obs     =        288
Model VCE    : OLS

Expression   : Linear prediction, predict()

1._at        : sanitize        =           0
               ideo2           =           0

2._at        : sanitize        =           0
               ideo2           =           6

3._at        : sanitize        =           1
               ideo2           =           0

4._at        : sanitize        =           1
               ideo2           =           6

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      t    P>|t|     [90% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   2.790597    .278099    10.03   0.000     2.331662    3.249531
          2  |   2.555223   .3377705     7.56   0.000     1.997816    3.112631
          3  |   1.997069   .2572604     7.76   0.000     1.572523    2.421614
          4  |    2.52834   .3248051     7.78   0.000     1.992328    3.064351
------------------------------------------------------------------------------

. marginsplot, x(sanitize) recast(line)  yscale(range(0 5)) ylabel(0(1)5) xscale(range(0 1)) graphregion(color(white)) xtitle("") ytitle(Intention to Buy Mask) ti("")  

  Variables that uniquely identify margins: sanitize ideo2

. graph save file2.gph, replace
(file file2.gph saved)

. 
. 
. 
. /*Study 2*/
. 
. use humanornots2.dta, clear

. 
. *Table 3
. reg sup_int c.wot_dh conserv rep  if time_read>10&wot_textr_2>.18

      Source |       SS           df       MS      Number of obs   =       623
-------------+----------------------------------   F(3, 619)       =     33.61
       Model |   197.36534         3  65.7884467   Prob > F        =    0.0000
    Residual |  1211.75183       619  1.95759586   R-squared       =    0.1401
-------------+----------------------------------   Adj R-squared   =    0.1359
       Total |  1409.11717       622   2.2654617   Root MSE        =    1.3991

------------------------------------------------------------------------------
     sup_int |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      wot_dh |   .2973316   .1134001     2.62   0.009     .0746361    .5200272
     conserv |   1.356223   .2598121     5.22   0.000     .8460028    1.866443
         rep |   .6577943   .1999771     3.29   0.001     .2650785     1.05051
       _cons |   3.441412   .1328279    25.91   0.000     3.180564     3.70226
------------------------------------------------------------------------------

. reg wot_dv_2 c.wot_dh conserv  rep  if time_read>10&wot_textr_2>.18

      Source |       SS           df       MS      Number of obs   =       623
-------------+----------------------------------   F(3, 619)       =     20.66
       Model |  187.462889         3  62.4876298   Prob > F        =    0.0000
    Residual |  1871.99778       619  3.02422905   R-squared       =    0.0910
-------------+----------------------------------   Adj R-squared   =    0.0866
       Total |  2059.46067       622  3.31103002   Root MSE        =     1.739

------------------------------------------------------------------------------
    wot_dv_2 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      wot_dh |   .2580049   .1409481     1.83   0.068    -.0187896    .5347993
     conserv |    2.09696   .3229276     6.49   0.000     1.462793    2.731126
         rep |  -.1782609    .248557    -0.72   0.474    -.6663781    .3098564
       _cons |    3.27035   .1650955    19.81   0.000     2.946135    3.594565
------------------------------------------------------------------------------

. reg wot_dv_4 c.wot_dh conserv rep  if time_read>10&wot_textr_2>.18

      Source |       SS           df       MS      Number of obs   =       623
-------------+----------------------------------   F(3, 619)       =     17.59
       Model |  122.706444         3  40.9021479   Prob > F        =    0.0000
    Residual |  1439.12341       619  2.32491666   R-squared       =    0.0786
-------------+----------------------------------   Adj R-squared   =    0.0741
       Total |  1561.82986       622  2.51098048   Root MSE        =    1.5248

------------------------------------------------------------------------------
    wot_dv_4 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      wot_dh |   .2829488   .1235821     2.29   0.022     .0402578    .5256398
     conserv |    1.56888   .2831402     5.54   0.000     1.012848    2.124912
         rep |  -.0050703   .2179327    -0.02   0.981    -.4330474    .4229067
       _cons |   4.126986   .1447543    28.51   0.000     3.842716    4.411255
------------------------------------------------------------------------------

. 
. gen low_believe = .
(2,944 missing values generated)

. replace low_believe = 1 if wot_textr_2<=.18
(110 real changes made)

. replace low_believe = 0 if wot_textr_2>.18
(2,834 real changes made)

. 
. reg sup_int c.wot_dh conserv rep low_believe if time_read>10

      Source |       SS           df       MS      Number of obs   =       703
-------------+----------------------------------   F(4, 698)       =     47.81
       Model |  384.728242         4  96.1820604   Prob > F        =    0.0000
    Residual |  1404.34715       698  2.01195867   R-squared       =    0.2150
-------------+----------------------------------   Adj R-squared   =    0.2105
       Total |  1789.07539       702  2.54854044   Root MSE        =    1.4184

------------------------------------------------------------------------------
     sup_int |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      wot_dh |   .2931287   .1083353     2.71   0.007     .0804266    .5058307
     conserv |   1.466485   .2461651     5.96   0.000     .9831718    1.949798
         rep |   .6318811   .1945844     3.25   0.001     .2498402    1.013922
 low_believe |  -1.206231    .170739    -7.06   0.000    -1.541454    -.871007
       _cons |   3.400104   .1271388    26.74   0.000     3.150483    3.649724
------------------------------------------------------------------------------

. reg wot_dv_2 c.wot_dh conserv rep low_believe if time_read>10

      Source |       SS           df       MS      Number of obs   =       703
-------------+----------------------------------   F(4, 698)       =     28.42
       Model |  345.200245         4  86.3000612   Prob > F        =    0.0000
    Residual |  2119.30331       698  3.03625116   R-squared       =    0.1401
-------------+----------------------------------   Adj R-squared   =    0.1351
       Total |  2464.50356       702  3.51068883   Root MSE        =    1.7425

------------------------------------------------------------------------------
    wot_dv_2 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      wot_dh |   .1863003    .133085     1.40   0.162    -.0749946    .4475952
     conserv |   2.063572   .3024028     6.82   0.000     1.469844    2.657301
         rep |  -.1303387   .2390383    -0.55   0.586    -.5996589    .3389815
 low_believe |  -1.137222   .2097452    -5.42   0.000    -1.549029    -.725415
       _cons |   3.298377   .1561843    21.12   0.000     2.991729    3.605024
------------------------------------------------------------------------------

. reg wot_dv_4 c.wot_dh conserv rep low_believe if time_read>10

      Source |       SS           df       MS      Number of obs   =       703
-------------+----------------------------------   F(4, 698)       =     31.09
       Model |  304.242327         4  76.0605817   Prob > F        =    0.0000
    Residual |  1707.71784       698  2.44658717   R-squared       =    0.1512
-------------+----------------------------------   Adj R-squared   =    0.1464
       Total |  2011.96017       702  2.86604013   Root MSE        =    1.5642

------------------------------------------------------------------------------
    wot_dv_4 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      wot_dh |   .2340587    .119465     1.96   0.050    -.0004951    .4686125
     conserv |   1.603794   .2714547     5.91   0.000     1.070829     2.13676
         rep |  -.0567514   .2145749    -0.26   0.791     -.478041    .3645382
 low_believe |  -1.365699   .1882797    -7.25   0.000    -1.735361   -.9960362
       _cons |   4.156264   .1402003    29.65   0.000        3.881    4.431529
------------------------------------------------------------------------------

. 
. ttest wot_textr_2, by(wot_dh)

Two-sample t test with equal variances
------------------------------------------------------------------------------
   Group |     Obs        Mean    Std. Err.   Std. Dev.   [95% Conf. Interval]
---------+--------------------------------------------------------------------
       0 |     576    .5498437     .010229    .2454961     .529753    .5699345
       1 |     534    .5529588    .0112995    .2611129    .5307619    .5751557
---------+--------------------------------------------------------------------
combined |   1,110    .5513423    .0075944    .2530195    .5364414    .5662433
---------+--------------------------------------------------------------------
    diff |           -.0031151    .0152062               -.0329513    .0267212
------------------------------------------------------------------------------
    diff = mean(0) - mean(1)                                      t =  -0.2049
Ho: diff = 0                                     degrees of freedom =     1108

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = 0.4189         Pr(|T| > |t|) = 0.8377          Pr(T > t) = 0.5811

. 
. *Differences on exlusion
. 
. gen include = .
(2,944 missing values generated)

. replace include = 1 if time_read>10
(2,670 real changes made)

. replace include = 1 if wot_textr_2>.18
(259 real changes made)

. replace include = 0 if time_read<=10|wot_textr_2<=.18
(369 real changes made)

. replace include = . if time_read==.
(1,829 real changes made, 1,829 to missing)

. replace include = . if wot_textr_2==.
(6 real changes made, 6 to missing)

. 
. ttest rep, by(include)

Two-sample t test with equal variances
------------------------------------------------------------------------------
   Group |     Obs        Mean    Std. Err.   Std. Dev.   [95% Conf. Interval]
---------+--------------------------------------------------------------------
       0 |     351    .4169041     .017209    .3224102    .3830581    .4507501
       1 |     689    .4641993    .0136169    .3574268    .4374637    .4909349
---------+--------------------------------------------------------------------
combined |   1,040    .4482372    .0107468    .3465723    .4271494     .469325
---------+--------------------------------------------------------------------
    diff |           -.0472952    .0226908               -.0918203   -.0027702
------------------------------------------------------------------------------
    diff = mean(0) - mean(1)                                      t =  -2.0843
Ho: diff = 0                                     degrees of freedom =     1038

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = 0.0187         Pr(|T| > |t|) = 0.0374          Pr(T > t) = 0.9813

. ttest conserv, by(include)

Two-sample t test with equal variances
------------------------------------------------------------------------------
   Group |     Obs        Mean    Std. Err.   Std. Dev.   [95% Conf. Interval]
---------+--------------------------------------------------------------------
       0 |     311    .4689175    .0157885    .2784338    .4378512    .4999837
       1 |     671    .5161451    .0108597     .281307    .4948218    .5374683
---------+--------------------------------------------------------------------
combined |     982    .5011881    .0089709     .281119    .4835838    .5187924
---------+--------------------------------------------------------------------
    diff |           -.0472276    .0192351               -.0849743   -.0094809
------------------------------------------------------------------------------
    diff = mean(0) - mean(1)                                      t =  -2.4553
Ho: diff = 0                                     degrees of freedom =      980

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = 0.0071         Pr(|T| > |t|) = 0.0143          Pr(T > t) = 0.9929

. ttest educ, by(include)

Two-sample t test with equal variances
------------------------------------------------------------------------------
   Group |     Obs        Mean    Std. Err.   Std. Dev.   [95% Conf. Interval]
---------+--------------------------------------------------------------------
       0 |     366    .6129326      .01232    .2356952    .5887055    .6371597
       1 |     743    .6101391    .0084423    .2301192    .5935655    .6267126
---------+--------------------------------------------------------------------
combined |   1,109     .611061    .0069628    .2318716    .5973993    .6247227
---------+--------------------------------------------------------------------
    diff |            .0027935    .0148138               -.0262728    .0318599
------------------------------------------------------------------------------
    diff = mean(0) - mean(1)                                      t =   0.1886
Ho: diff = 0                                     degrees of freedom =     1107

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = 0.5748         Pr(|T| > |t|) = 0.8505          Pr(T > t) = 0.4252

. ttest female, by(include)

Two-sample t test with equal variances
------------------------------------------------------------------------------
   Group |     Obs        Mean    Std. Err.   Std. Dev.   [95% Conf. Interval]
---------+--------------------------------------------------------------------
       0 |     339    .6755162    .0254657    .4688737     .625425    .7256075
       1 |     700    .6971429    .0173797    .4598225    .6630203    .7312654
---------+--------------------------------------------------------------------
combined |   1,039    .6900866     .014354    .4626804    .6619204    .7182528
---------+--------------------------------------------------------------------
    diff |           -.0216266    .0306228               -.0817163    .0384631
------------------------------------------------------------------------------
    diff = mean(0) - mean(1)                                      t =  -0.7062
Ho: diff = 0                                     degrees of freedom =     1037

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = 0.2401         Pr(|T| > |t|) = 0.4802          Pr(T > t) = 0.7599

. 
. 
. *Ideology moderation
. 
. reg sup_int c.wot_dh c.conserv c.wot_dh#c.conserv rep  if time_read>10&wot_textr_2>.18

      Source |       SS           df       MS      Number of obs   =       623
-------------+----------------------------------   F(4, 618)       =     25.17
       Model |  197.369918         4  49.3424796   Prob > F        =    0.0000
    Residual |  1211.74726       618  1.96075608   R-squared       =    0.1401
-------------+----------------------------------   Adj R-squared   =    0.1345
       Total |  1409.11717       622   2.2654617   Root MSE        =    1.4003

------------------------------------------------------------------------------------
           sup_int |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------------+----------------------------------------------------------------
            wot_dh |    .307051   .2309518     1.33   0.184    -.1464946    .7605965
           conserv |   1.366086   .3305659     4.13   0.000     .7169171    2.015254
                   |
c.wot_dh#c.conserv |  -.0196192   .4060202    -0.05   0.961    -.8169658    .7777274
                   |
               rep |   .6569507   .2008983     3.27   0.001     .2624245    1.051477
             _cons |    3.43658   .1663451    20.66   0.000      3.10991     3.76325
------------------------------------------------------------------------------------

. reg wot_dv_2 c.wot_dh c.conserv c.wot_dh#c.conserv rep  if time_read>10&wot_textr_2>.18

      Source |       SS           df       MS      Number of obs   =       623
-------------+----------------------------------   F(4, 618)       =     15.51
       Model |  187.889003         4  46.9722508   Prob > F        =    0.0000
    Residual |  1871.57167       618  3.02843312   R-squared       =    0.0912
-------------+----------------------------------   Adj R-squared   =    0.0854
       Total |  2059.46067       622  3.31103002   Root MSE        =    1.7402

------------------------------------------------------------------------------------
          wot_dv_2 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------------+----------------------------------------------------------------
            wot_dh |   .1642367   .2870243     0.57   0.567    -.3994245    .7278979
           conserv |   2.001806   .4108235     4.87   0.000     1.195027    2.808586
                   |
c.wot_dh#c.conserv |   .1892773   .5045973     0.38   0.708    -.8016558     1.18021
                   |
               rep |  -.1701227   .2496741    -0.68   0.496    -.6604353    .3201899
             _cons |   3.316966   .2067318    16.04   0.000     2.910983    3.722948
------------------------------------------------------------------------------------

. reg wot_dv_4 c.wot_dh c.conserv c.wot_dh#c.conserv rep  if time_read>10&wot_textr_2>.18

      Source |       SS           df       MS      Number of obs   =       623
-------------+----------------------------------   F(4, 618)       =     13.26
       Model |  123.465421         4  30.8663551   Prob > F        =    0.0000
    Residual |  1438.36444       618  2.32745054   R-squared       =    0.0791
-------------+----------------------------------   Adj R-squared   =    0.0731
       Total |  1561.82986       622  2.51098048   Root MSE        =    1.5256

------------------------------------------------------------------------------------
          wot_dv_4 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------------+----------------------------------------------------------------
            wot_dh |   .1578057   .2516227     0.63   0.531    -.3363335    .6519449
           conserv |   1.441888   .3601525     4.00   0.000     .7346171    2.149159
                   |
c.wot_dh#c.conserv |   .2526098   .4423603     0.57   0.568    -.6161018    1.121321
                   |
               rep |   .0057909   .2188794     0.03   0.979    -.4240466    .4356284
             _cons |   4.189198   .1812335    23.11   0.000      3.83329    4.545107
------------------------------------------------------------------------------------

. 
. 
. *Emotions measures (page 13)
. 
. reg hon_fear c.wot_dh conserv  rep if time_read>10&wot_textr_2>.18

      Source |       SS           df       MS      Number of obs   =       623
-------------+----------------------------------   F(3, 619)       =      1.34
       Model |  6.91982118         3  2.30660706   Prob > F        =    0.2619
    Residual |  1069.22464       619  1.72734191   R-squared       =    0.0064
-------------+----------------------------------   Adj R-squared   =    0.0016
       Total |  1076.14446       622  1.73013579   Root MSE        =    1.3143

------------------------------------------------------------------------------
    hon_fear |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      wot_dh |   .0441766   .1065224     0.41   0.678    -.1650126    .2533657
     conserv |   .3405435   .2440546     1.40   0.163    -.1387318    .8198188
         rep |  -.3609541   .1878486    -1.92   0.055    -.7298518    .0079436
       _cons |   3.064168    .124772    24.56   0.000     2.819141    3.309196
------------------------------------------------------------------------------

. reg hon_anger c.wot_dh conserv  rep if time_read>10&wot_textr_2>.18

      Source |       SS           df       MS      Number of obs   =       623
-------------+----------------------------------   F(3, 619)       =      7.80
       Model |   24.949836         3    8.316612   Prob > F        =    0.0000
    Residual |  660.257227       619  1.06665142   R-squared       =    0.0364
-------------+----------------------------------   Adj R-squared   =    0.0317
       Total |  685.207063       622  1.10161907   Root MSE        =    1.0328

------------------------------------------------------------------------------
   hon_anger |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      wot_dh |    .122733   .0837073     1.47   0.143    -.0416516    .2871177
     conserv |   .7257731   .1917825     3.78   0.000     .3491499    1.102396
         rep |  -.0233232   .1476148    -0.16   0.875    -.3132098    .2665633
       _cons |   3.721243   .0980481    37.95   0.000     3.528695     3.91379
------------------------------------------------------------------------------

. reg hon_disgust c.wot_dh conserv  rep if time_read>10&wot_textr_2>.18

      Source |       SS           df       MS      Number of obs   =       623
-------------+----------------------------------   F(3, 619)       =      5.73
       Model |  18.4184254         3  6.13947513   Prob > F        =    0.0007
    Residual |  662.669857       619  1.07054904   R-squared       =    0.0270
-------------+----------------------------------   Adj R-squared   =    0.0223
       Total |  681.088283       622  1.09499724   Root MSE        =    1.0347

------------------------------------------------------------------------------
 hon_disgust |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      wot_dh |  -.0003903   .0838601    -0.00   0.996     -.165075    .1642944
     conserv |   .5536146   .1921326     2.88   0.004     .1763039    .9309254
         rep |   .0682732   .1478843     0.46   0.644    -.2221425    .3586889
       _cons |   3.917324   .0982271    39.88   0.000     3.724426    4.110223
------------------------------------------------------------------------------

. 
. 
. reg hon_fear c.wot_dh conserv  rep if time_read>10

      Source |       SS           df       MS      Number of obs   =       703
-------------+----------------------------------   F(3, 699)       =      0.81
       Model |  4.36995091         3   1.4566503   Prob > F        =    0.4866
    Residual |  1251.57884       699  1.79052767   R-squared       =    0.0035
-------------+----------------------------------   Adj R-squared   =   -0.0008
       Total |  1255.94879       702  1.78910084   Root MSE        =    1.3381

------------------------------------------------------------------------------
    hon_fear |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      wot_dh |  -.0096627   .1019028    -0.09   0.924     -.209735    .1904096
     conserv |   .3457588   .2311605     1.50   0.135    -.1080933    .7996109
         rep |   -.236683    .183549    -1.29   0.198    -.5970565    .1236905
       _cons |   2.951365   .1169866    25.23   0.000     2.721678    3.181052
------------------------------------------------------------------------------

. reg hon_anger c.wot_dh conserv  rep if time_read>10

      Source |       SS           df       MS      Number of obs   =       703
-------------+----------------------------------   F(3, 699)       =      8.02
       Model |  29.6463513         3  9.88211711   Prob > F        =    0.0000
    Residual |  860.897034       699  1.23161235   R-squared       =    0.0333
-------------+----------------------------------   Adj R-squared   =    0.0291
       Total |  890.543385       702  1.26858032   Root MSE        =    1.1098

------------------------------------------------------------------------------
   hon_anger |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      wot_dh |   .0600766   .0845148     0.71   0.477    -.1058566    .2260099
     conserv |   .7589672   .1917168     3.96   0.000     .3825574    1.135377
         rep |   -.043605   .1522294    -0.29   0.775    -.3424867    .2552767
       _cons |   3.666667   .0970247    37.79   0.000     3.476172    3.857162
------------------------------------------------------------------------------

. reg hon_disgust c.wot_dh conserv  rep if time_read>10

      Source |       SS           df       MS      Number of obs   =       703
-------------+----------------------------------   F(3, 699)       =      7.78
       Model |  28.0958636         3  9.36528788   Prob > F        =    0.0000
    Residual |  841.312387       699  1.20359426   R-squared       =    0.0323
-------------+----------------------------------   Adj R-squared   =    0.0282
       Total |   869.40825       702  1.23847329   Root MSE        =    1.0971

------------------------------------------------------------------------------
 hon_disgust |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      wot_dh |  -.1120949   .0835479    -1.34   0.180    -.2761298    .0519401
     conserv |   .6421607   .1895235     3.39   0.001     .2700571    1.014264
         rep |   .0111768   .1504879     0.07   0.941    -.2842857    .3066392
       _cons |    3.89026   .0959148    40.56   0.000     3.701944    4.078575
------------------------------------------------------------------------------

. 
. log close
      name:  <unnamed>
       log:  C:\Users\stephenutych\Dropbox\dissertation!!\Experimental stuff\PSRMreplication.log
  log type:  text
 closed on:   5 Aug 2020, 11:45:58
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
